package com.jack.newTech;

/**
 * Created by zhang_j on 2020/7/15
 */
public class BitMapTest {

    public static void main(String[] args) {
        BitMap bitMap = new BitMap(1000, 0.001);
        bitMap.insert("test");
        bitMap.insert("test1");
        bitMap.insert("test2");
        bitMap.insert("test3");

        System.out.println(bitMap.mightContain("this"));
        System.out.println(bitMap.mightContain("test"));
        System.out.println(bitMap.mightContain("test1"));
        System.out.println(bitMap.mightContain("test2"));
        System.out.println(bitMap.mightContain("test3"));
        System.out.println(bitMap.mightContain("test4"));
    }
}
